<extend name="Public/base"/>
<block name="title">购物</block>
<block name="body">
    <div class="main-title">
        <h2>添加商品详情(属性)</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
       <input type="hidden" name="gid" value="{$id}">
        <div class="form-item">
            <label class="item-label">商品属性<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="kname[]" value="">
        <sapn class="add-sub-cate add" title="添加子分类">
        <i class="icon-add"></i>
        </sapn>
            </div>
        </div>
        <div class="form-item" style="float:left">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
    <div class="form-item">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal"><a href="{:U('val?id='.$id)}" style="color: #fff">下一步</a></button>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Shop/catalogue')}');
    </script>
    <script>

    $(function(){
        $(".add").click(function(){
            $.get("{:U(getinput)}",{},
                function(data){
                $(".add").after(data.data);
          });
        });
    });
</script>
</block>